package com.scen.upload.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)  // 如果返回字段为空，则不返回该字段
public class OtherNode {

    private Integer value; //省份id
    private Integer type;  //数据类型
    private String label;  //省份数据
    private List<OtherNode> children = new ArrayList<>();

    /**
     * 构造方法
     *
     * @param value
     * @param type
     * @param label
     */
    public OtherNode(Integer value, Integer type, String label) {
        this.value = value;
        this.type = type;
        this.label = label;
    }
}
